<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Run a single high priority task</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dobackground.html">GearmanClient::doBackground</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.dohighbackground.html">GearmanClient::doHighBackground</a></div>
 <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="gearmanclient.dohigh" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">GearmanClient::doHigh</h1>
  <p class="verinfo">(PECL gearman &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">GearmanClient::doHigh</span> &mdash; <span class="dc-title">Run a single high priority task</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gearmanclient.dohigh-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>GearmanClient::doHigh</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$function_name</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$workload</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$unique</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Runs a single high priority task and returns a string representation of the result.  It is up to
   the <a href="class.gearmanclient.html" class="classname">GearmanClient</a> and <a href="class.gearmanworker.html" class="classname">GearmanWorker</a> to
   agree on the format of the result.  High priority tasks will get precedence over normal
   and low priority tasks in the job queue.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-gearmanclient.dohigh-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">function_name</code></em></dt>

     <dd>

      <p class="para">
       由程序自动执行的已注册函数。
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">workload</code></em></dt>

     <dd>

      <p class="para">
       被处理的序列化数据。
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">unique</code></em></dt>

     <dd>

      <p class="para">
       用于标识特定任务的唯一性 ID。
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gearmanclient.dohigh-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   A string representing the results of running a task.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-gearmanclient.dohigh-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="gearmanclient.donormal.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doNormal()</a> - Run a single task and return a result</span></li>
    <li class="member"><span class="methodname"><a href="gearmanclient.dolow.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doLow()</a> - Run a single low priority task</span></li>
    <li class="member"><span class="methodname"><a href="gearmanclient.dobackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doBackground()</a> - Run a task in the background</span></li>
    <li class="member"><span class="methodname"><a href="gearmanclient.dohighbackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doHighBackground()</a> - Run a high priority task in the background</span></li>
    <li class="member"><span class="methodname"><a href="gearmanclient.dolowbackground.html" class="methodname" rel="rdfs-seeAlso">GearmanClient::doLowBackground()</a> - Run a low priority task in the background</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="gearmanclient.dobackground.html">GearmanClient::doBackground</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="gearmanclient.dohighbackground.html">GearmanClient::doHighBackground</a></div>
 <div class="up"><a href="class.gearmanclient.html">GearmanClient</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
